﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.OperationHistory
{
    /// <summary>
    ///操作履历
    /// </summary>
    public class OperationLog : FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 业务ID
        /// </summary>
        public Guid BusinessId { get; set; }
        /// <summary>
        /// 操作履历--业务类型，一般定义为功能模块，例如Bop管理，质量管理
        /// </summary>
        public BusinessTypes BusinessType { get; set; }
        /// <summary>
        /// 操作履历--操作类型，增删改等
        /// </summary>
        public OperationTypes OperationType { get; set; }

        /// <summary>
        /// 工步Id仅Bop修改用
        /// </summary>
        public Guid? StepId { get; set; }

        /// <summary>
        /// 操作详情
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public long? UserId { get; set; }

    }
}
